import { createRouter, createWebHashHistory } from "vue-router";
const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      // TODO: 首页 共富功能没有，销售带富/疫菜 暂时不做
      path: "/", // 已接----  共富功能没有，销售带富/疫菜没有
      name: "首页",
      components: {
        default: () => import("../pages/index"),
        footer: () => import("../components/LmFooter/index"),
      },
    },
    {
      path: "/new",
      name: "消息",
      components: {
        default: () => import("../pages/new"),
        footer: () => import("../components/LmFooter/index"),
      },
    },
    {
      path: "/my",
      name: "我的",
      components: {
        default: () => import("../pages/my"),
        footer: () => import("../components/LmFooter/index"),
      },
    },
    {
      path: "/login", // 已接------
      name: "登录",
      components: {
        default: () => import("../pages/login"),
      },
    },
    {
      path: "/applicationList", // 帮用工-申请列表-大户 已接------ //已换新样式
      name: "申请列表",
      components: {
        default: () => import("../pages/applicationList/index"),
      },
    },
    {
      // TODO: 我的共富码 共富码功能未确定
      path: "/richdimensional", // 共富码功能未确定
      name: "我的共富码",
      components: {
        default: () => import("../pages/richdimensional/index"),
      },
    },
    {
      // TODO: 帮授经验 小户我的大户模块待确定要不要
      path: "/helpTeachExperience", // 已接------ //已换新样式
      name: "帮授经验",
      components: {
        default: () => import("../pages/helpTeachExperience/index"),
      },
    },
    {
      path: "/collateralSupply", // 已接------ //已换新样式
      name: "帮保供",
      components: {
        default: () => import("../pages/collateralSupply/index"),
      },
    },
    {
      // TODO: 溯源记录 按钮操作未接
      path: "/traceabilityRecord", // 已接------ 按钮操作未接 //已换新样式
      name: "溯源记录",
      components: {
        default: () => import("../pages/traceabilityRecord/index"),
      },
    },
    {
      // TODO: 授权记录 按钮操作未接
      path: "/authorizationRecord", // 已接------ 按钮操作未接 //已换新样式
      name: "授权记录",
      components: {
        default: () => import("../pages/authorizationRecord/index"),
      },
    },
    {
      // TODO: 共富积分 功能暂时不做
      path: "/affluentIntegral",
      name: "共富积分",
      components: {
        default: () => import("../pages/affluentIntegral/index"),
      },
    },
    {
      // TODO: 奖励兑换 功能暂时不做
      path: "/exchange", // 功能暂时不做
      name: "奖励兑换",
      components: {
        default: () => import("../pages/exchange/index"),
      },
    },
    {
      // TODO: 帮政策 页面内容为空
      path: "/helpPolicy", // 页面内容为空-----
      name: "帮政策",
      components: {
        default: () => import("../pages/helpPolicy/index"),
      },
    },
    {
      path: "/helpStorage", // 新蓝湖原型未找到 - 监管h5内的页面
      name: "帮存储",
      components: {
        default: () => import("../pages/helpStorage/index"),
      },
    },
    {
      // TODO: 帮品牌 按钮操作未接
      path: "/gangbrand", // 已接------ 按钮操作未接
      name: "帮品牌",
      components: {
        default: () => import("../pages/gangbrand/index"),
      },
    },
    {
      path: "/myBrand",
      name: "我的品牌",
      components: {
        default: () => import("../pages/myBrand/index"),
      },
    },
    {
      path: "/brandApplication",
      name: "品牌申请",
      components: {
        default: () => import("../pages/brandApplication/index"),
      },
    },
    {
      // TODO: 品牌详情 按钮操作未处理
      path: "/brandDetails", // 已接----- 按钮操作未处理
      name: "品牌详情",
      components: {
        default: () => import("../pages/brandDetails/index"),
      },
    },
    // {
    //   path: "/applicationRecord", //小户页面// 已接----- 按钮操作未处理
    //   name: "申请记录",
    //   components: {
    //     default: () => import("../pages/applicationRecord/index"),
    //   },
    // }, 合并到授权记录页面
    {
      // TODO: 帮选品种(大户)
      path: "/assortingVarietydh", // 已接----- //已换新样式
      name: "帮选品种(大户)",
      components: {
        default: () => import("../pages/assortingVarietydh/index"),
      },
    },
    {
      // TODO: 帮选品种(小户) 按钮操作未处理
      path: "/assortingVarietyxh", // 已接--- //已换新样式
      name: "帮选品种(小户)",
      components: {
        default: () => import("../pages/assortingVarietyxh/index"),
      },
    },
    {
      path: "/seedPurchase",
      name: "代购种子",
      components: {
        default: () => import("../pages/seedPurchase/index"),
      },
    },
    {
      // TODO: 百科品种详情 按钮操作未接
      path: "/encyclopediaVarietyDetails", //已接  按钮操作未接
      name: "百科品种详情",
      components: {
        default: () => import("../pages/encyclopediaVarietyDetails/index"),
      },
    },
    {
      path: "/intelligentRecommendation", //  已接--- //已换新样式
      name: "种子大厅",
      components: {
        default: () => import("../pages/intelligentRecommendation/index"),
      },
    },
    {
      //TODO:品种详情 缺少种植大户字段  大户列表接口
      path: "/varietyDetails", //已接  缺少种植大户字段   大户列表接口
      name: "品种详情",
      components: {
        default: () => import("../pages/varietyDetails/index"),
      },
    },
    {
      path: "/helpSelectionRecord", //已接---  //已换新样式
      name: "帮选记录",
      components: {
        default: () => import("../pages/helpSelectionRecord/index"),
      },
    },
    
    {
      //TODO: 专家列表   已接 缺少头像图片字段
      path: "/listExperts",
      name: "专家列表", // 已接------//缺少头像图片字段
      components: {
        default: () => import("../pages/listExperts/index"),
      },
    },
    {
      //TODO: 品种百科   已写接口请求逻辑 接口有问题
      path: "/brandEncyclopedia", //已写接口请求逻辑
      name: "品种百科",
      components: {
        default: () => import("../pages/brandEncyclopedia/index"),
      },
    },
    {
      // TODO: 溯源结果 后端说这个版本不做
      path: "/traceableResult", //溯源结果暂无接口
      name: "溯源结果",
      components: {
        default: () => import("../pages/traceableResult/index"),
      },
    },
    {
      path: "/traceabilityApplication",
      name: "溯源申请",
      components: {
        default: () => import("../pages/traceabilityApplication/index"),
      },
    },
    {
      //TODO: 设备列表  暂无接口
      path: "/deviceList", //暂无接口
      name: "设备列表",
      components: {
        default: () => import("../pages/deviceList/index"),
      },
    },
    {
      //TODO: 设备详情    暂无接口 页面组件补全
      path: "/deviceDetails", //暂无接口  未来农场示范点/设备详情小户可共用
      name: "设备详情",
      components: {
        default: () => import("../pages/deviceDetails/index"),
      },
    },
    {
      path: "/appointmentApplication", //样式已调整
      name: "预约申请",
      components: {
        default: () => import("../pages/appointmentApplication/index"),
      },
    },
    {
      // TODO: 代购记录 列表接口请求类型错误 大户/小户页面
      path: "/behalfBuyRecord", //
      name: "代购记录",
      components: {
        default: () => import("../pages/behalfBuyRecord/index"),
      },
    },
    {
      // TODO: 检测记录 接口暂无 大户/小户页面
      path: "/detectionRecord",
      name: "检测记录",
      components: {
        default: () => import("../pages/detectionRecord/index"),
      },
    },
    {
      //  TODO newpage   课件详情 大小公用部分区别
      path: "/agriculturalTechnologyClassDetial",
      name: "课件详情",
      components: {
        default: () =>
          import("../pages/agriculturalTechnologyClassDetial/index"),
      },
    },
    {
      //  TODO newpage 接口已接  缺少时间字段
      path: "/helpPolicyDetails",
      name: "政策详情",
      components: {
        default: () => import("../pages/helpPolicyDetails/index"),
      },
    },
    {
      path: "/supplyTaskList", //帮保供-任务列表  接口已接----
      name: "任务列表",
      components: {
        default: () => import("../pages/supplyTaskList/index"),
      },
    },

    {
      path: "/supplyTaskListDetail",
      name: "任务详情",
      components: {
        default: () => import("../pages/supplyTaskListDetail/index"),
      },
    },
    {
      path: "/applicationSuccess",
      name: "申请成功",
      components: {
        default: () => import("../pages/applicationSuccess/index"),
      },
    },
    {
      path: "/employmentRecords",
      name: "用工记录",
      components: {
        default: () => import("../pages/employmentRecords/index"),
      },
    },
    {
      path: "/applicationSuccess",
      name: "申请成功",
      components: {
        default: () => import("../pages/applicationSuccess/index"),
      },
    },
    {
      path: "/helpUnsalable",
      name: "帮滞销",
      components: {
        default: () => import("../pages/helpUnsalable/index"),
      },
    },
    {
      path: "/unsalableRecord",
      name: "滞销记录",
      components: {
        default: () => import("../pages/unsalableRecord/index"),
      },
    },
    {
      path: "/unsalableApplication",
      name: "滞销申请",
      components: {
        default: () => import("../pages/unsalableApplication/index"),
      },
    },
    {
      path: "/helpRecords",
      name: "帮工记录",
      components: {
        default: () => import("../pages/helpRecords/index"),
      },
    },
    {
      path: "/sendRecords",
      name: "发布记录",
      components: {
        default: () => import("../pages/sendRecords/index"),
      },
    },

    {
      path: "/helpEmployingRichWorkers", //大户-小户
      name: "帮用工",
      components: {
        default: () => import("../pages/helpEmployingRichWorkers/index"),
      },
    },
    {
      path: "/helpEmployingDetail",
      name: "帮工详情",
      components: {
        default: () => import("../pages/helpEmployingDetail/index"),
      },
    },
    {
      path: "/sedNeedEmploying",
      name: "发布用工需求",
      components: {
        default: () => import("../pages/sedNeedEmploying/index"),
      },
    },
    {
      path: "/feedBack",
      name: "意见反馈",
      components: {
        default: () => import("../pages/feedBack/index"),
      },
    },
    {
      path: "/partneredMap",
      name: "结队地图",
      components: {
        default: () => import("../pages/partneredMap/index"),
      },
    },
    {
      path: "/demonstrationMap",
      name: "数字基地示范点",
      components: {
        default: () => import("../pages/demonstrationMap/index"),
      },
    },

    /* 详情模版 */ /* 列表模板 /authorizationRecord */
    {
      path: "/formationDetail",
      name: "结队详情",
      components: {
        default: () => import("../pages/formationDetail/index"),
      },
    },
    {
      path: "/partneredList",
      name: "结队申请", //大/小户列表
      components: {
        default: () => import("../pages/partneredList/index"),
      },
    },
    {
      path: "/farmDetail",
      name: "农场详情",
      components: {
        default: () => import("../pages/farmDetail/index"),
      },
    },
    {
      path: "/eachRichData",
      name: "共富数据",
      components: {
        default: () => import("../pages/eachRichData/index"),
      },
    },
    {
      path: "/helpCenter",
      name: "帮助中心",
      components: {
        default: () => import("../pages/helpCenter/index"),
      },
    },
  ],
});

export default router;
